package cc.vv.btpartyjob.jnimodule.adapter

import android.widget.ImageView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.jnimodule.R
import cc.vv.btpartyjob.jnimodule.moudel.bean.JniDataBean
import cc.vv.lkimagecomponent2.LKImage
import cc.vv.lkimagecomponent2.lib.mode.ScaleMode

/**
 * 生活会相关adapter
 * Created by Chen.qi on 2018/10/24.
 */
class LifeWouldAdapter(layoutResId: Int) : SimpleCommonAdapter<JniDataBean>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: JniDataBean, position: Int) {
        LKImage.load().scale(ScaleMode.CENTER_CROP)
                .crossFade(300).placeHolder(R.mipmap.icon_def_image)
                .error(R.mipmap.icon_def_image).load(item.picUrl).into(helper.getView<ImageView>(R.id.iv_ilw_itemPic))
        helper.setText(R.id.tv_ilw_listTitle, item.title)
        helper.setText(R.id.tv_ilw_listDataTime, item.time)




    }
}